package org.za.communication.message;

import org.apache.mina.core.buffer.IoBuffer;

public abstract class BaseMessage {
	protected int msgId;
	protected IoBuffer buf;

	public IoBuffer getBuf() {
		return buf;
	}

	public void setBuf(IoBuffer buf) {
		this.buf = buf;
	}

	public int getMsgId() {
		return msgId;
	}

	public void setMsgId(int msgId) {
		this.msgId = msgId;
	}

	public abstract IoBuffer getData();

	public abstract void setData(IoBuffer buf);
}
